- // upper shelf mount
- translate ([0, plate_cut_y_offset, 0]) {
- for (x = [-0.01, plate_cut_width + plate_cut_distance, plate_cut_width*2 + plate_cut_distance + plate_cut_center, plate_cut_width*3 + plate_cut_distance*2 + plate_cut_center + 0.01])
- #translate ([x - hole_tolerance/2, 0, 0]) square ([plate_cut_width + hole_tolerance, plate_cut_height]);
+module shelf_mount_holes () {
+ depth = plate_depth*2+0.4;
+ translate ([0, 0, -0.1]) {
+ // upper shelf mount
+ translate ([plate_cut_width/2, plate_cut_y_offset, 0]) {
+ for (x = [-0.001, plate_cut_width + plate_cut_distance,
+ plate_width - plate_cut_width + 0.001, plate_width - plate_cut_width*2 - plate_cut_distance])
+ translate ([x, plate_cut_height/2, 0]) cube ([plate_cut_width + hole_tolerance, plate_cut_height, depth], center = true);
+
+ // looks like the bolt is at the midpoint between the cut outs
+ for (x = [plate_cut_x_bolt_offset - plate_cut_width, plate_width - plate_cut_x_bolt_offset])
+ translate ([x, plate_cut_height / 2, 0]) {
+ #cylinder (d = plate_cut_bolt, h = depth);
+ cylinder (d = bolthead_diameter, h = bolthead_depth+0.1);
+ }